package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Region;
import cn.wolfcode.wolf2w.domain.Travel;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 游记持久化操作接口
 */
public interface TravelRepsitory extends MongoRepository<Travel, String> {

    /**
     * 查询目的地下点击量前3
     * @param destId
     * @param pageable
     * @return
     */
    List<Travel> findByDestId(String destId, Pageable pageable);
}
